package net.grandcentrix.thirtyinch.internal;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.ability.LifecycleObserver;
import ohos.aafwk.content.Intent;
import ohos.utils.PacMap;

public interface ILifecycleObserver {

    public LifecycleObserver getLifecycleObserver();

    // form LifecycleObserver
    public void onStart(Intent intent);

    public void onInactive();

    public void onActive();

    public void onBackground();

    public void onForeground(Intent intent);

    public void onStop();

    // extra advanced
    public void onActivityCreated(Ability ability, PacMap pacMap);
    public void onActivitySaveInstanceState(Ability ability, PacMap outMap);
}
